<%@ page import="java.lang.reflect.Array" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/1/16
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理分类列表</title>
    <script type="text/javascript" src="../script/jquery-3.2.1.js"></script>
    <link href="../css/sectionList.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../script/sectionList.js"></script>
    <style type="text/css">
        .li1 {
            /*border: solid 1px red;*/
        }
    </style>
    <script type="text/javascript">
        $(function () {
        });
    </script>

</head>

<body style="height: 100%; width: 100%">
<%--<c:if test="${manager == null}">--%>
<%--<%response.sendRedirect("../admin/login.jsp"); %>--%>
<%--</c:if>--%>

<ul class="ul1" id="first">
    <h3 class="h3">部门职位列表</h3>
    <c:if test="${empty sections}">
        <li class="li1">还没有任何分类，请添加！</li>
    </c:if>
    <c:if test="${not empty sections}">
        <c:forEach items="${sections}" var="se">
            <hr class="hr"/>
            <li class="li1" value="${se.id}">
                <input type="hidden" value="section" class="content_type">
                <input type="hidden" value="${se.id}" class="content_id">
                <input type="text" value="${se.section}" class="content_name" disabled
                       onblur="inputBlur(this)" onchange="inputChange(this)">
                <%--<img src="/images/del.jpg" alt="删除" class="del" title="删除" onclick="delClick(this)">--%>
                <img src="/images/add.jpg" alt="修改" class="update" title="修改" onclick="updateClick(this)"/>
            </li>
        </c:forEach>
    </c:if>

</ul>

<div id="myDiv">
    <a href="../section/sections" id="add1" class="a2">
        <img src="../images/+.jpg" style="margin: 5px auto"/>
    </a>
</div>

<c:forEach items="${sections}" var="section" varStatus="st">
    <div class="details" style="top:${-62-25*(sections.size() - st.count)}px;">
            <%--${sections.size()} ----- ${st.count}--%>
        <ul class="ul2"></ul>
        <a href="../section/positions?sId=${section.id}" class="a2">
            <img src="../images/+.jpg" class="img2"/>
        </a>
    </div>
</c:forEach>

</body>
</html>